package com.yjd.comm.activity.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.activity.model.TaskModel;

/**
 * <b>description</b>：营销任务业务接口<br>
 * <b>time</b>：2014-12-17 12:51:59 <br>
 * <b>author</b>：  renbangjie_vip@163.com
 */
public interface ITaskService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public TaskModel insert(TaskModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(TaskModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param task_id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long task_id) throws Exception;
	
	/**
	* 根据task_id获取任务
	* @param event_id
	* @return
	* @throws Exception
	 */
	public TaskModel getTaskByEventId(Integer event_id) throws Exception;

}
